FROM daocloud.io/java
ENV APP_NAME @project.build.finalName@.@project.packaging@
ENV APP_VERSION @project.version@
EXPOSE 8020
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
RUN mkdir /home/logs/
VOLUME ["/home/java/logs"]
ADD $APP_NAME $APP_NAME
CMD java -Xmx512m -Xms512m -jar $APP_NAME